package com.example.sxmall.dao.pojo;

import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhang
 * @since 2022-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Admins extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 管理员ID自增
     */
    @TableId(value = "aid", type = IdType.AUTO)
    private Integer aid;

    /**
     * 管理员账户
     */
    @NotBlank(message = "账号不能为空")
    private String acount;

    /**
     * 管理员密码
     */
    private String apwd;


    /**
     * 备注(可不填)
     */
    private String aremarks;

    @TableField(exist = false)
    private List<Permission> permissions = new ArrayList<>();
